package org.example.model;

import lombok.Setter;

import java.math.BigDecimal;

@Setter
public class PaddleWidget extends Widget {

    private String text;
    private float x1;
    private float x2;
    private float y1;
    private float y2;
    private float width;
    private float height;

    @Override
    public String getText() {
        return text;
    }

    @Override
    public BigDecimal getConfidence() {
        return super.getConfidence();
    }

    @Override
    public BigDecimal getX() {
        return BigDecimal.valueOf(x1);
    }

    @Override
    public BigDecimal getY() {
        return BigDecimal.valueOf(y1);
    }

    @Override
    public BigDecimal getWidth() {
        return BigDecimal.valueOf(width);
    }

    @Override
    public BigDecimal getHeight() {
        return BigDecimal.valueOf(height);
    }
}
